﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Forms;

namespace QLBH.StandardUI
{
    public class ShowMessage
    {
        private static ShowMessage instance;

        public static ShowMessage Instance
        {
            get
            {
                if (instance == null)
                {
                    instance = new ShowMessage();
                }
                return ShowMessage.instance;
            }

        }
        public void ShowError(String msg)
        {
            MessageBox.Show(msg, "Lỗi", MessageBoxButtons.OK, MessageBoxIcon.Error);
        }
        public DialogResult ShowQuestion(String msg)
        {
            return MessageBox.Show(msg, "Hỏi", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
        }
        public void ShowInfo(String msg)
        {
            MessageBox.Show(msg, "Thông tin", MessageBoxButtons.OK, MessageBoxIcon.Information);
        }
        public void ShoWarning(String msg)
        {
            MessageBox.Show(msg, "Cảnh báo", MessageBoxButtons.OK, MessageBoxIcon.Warning);
        }

    }
}
